package pers.vic.system.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import pers.vic.base.annoation.MybatisMapper;
import pers.vic.base.bo.system.SysDict;
import pers.vic.base.mapper.BaseMapper;

/**
 * 数据字典表 Mapper
 * 
 * @author VIC
 */
@MybatisMapper
public interface SysDictMapper extends BaseMapper<SysDict> {
	
	/**获取子节点*/
	List<SysDict> findAllChildDict(@Param(value = "limitMin")long limitMin, @Param(value = "limitMax")long limitMax);

	Long getMaxChildCode(@Param(value = "limitMax")long limitMax, @Param(value = "limitMin")long limitMin);

	SysDict findByCode(@Param("code")long code);
	
	/**逻辑删除*/
	int mockDelete(@Param("code")long code);
	
}
